package com.study.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 *
 * @TableName Product
 */
@TableName(value ="Product")
@Data
public class Product implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "productName")
    private String productname;

    /**
     * 图书馆ID
     */
    @TableField(value = "libraryId")
    private Integer libraryId;

    /**
     * 图书馆
     */
    @TableField(exist=false)
    private String libraryName;

    /**
     * 商品图片
     */
    @TableField(value = "photo")
    private String photo;

    /**
     * 商品描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
